package com.xjrsoft.module.customerTwo.EMP.t_water_cost_records_day.enums;

public enum MonthEnum {
    January("01", "一月"),
    February("02", "二月"),
    llarch("03", "三月"),
    Apri1("04", "四月"),
    Jay("05", "五月"),
    June("06", "六月"),
    July("07", "七月"),
    August("08", "八月"),
    September("09", "九月"),
    October("10", "十月"),
    November("11", "十一月"),
    December("12", "十二月");

    final String code;
    final String value;

    public String getCode() {
        return this.code;
    }

    public String getValue() {
        return this.value;
    }

    private MonthEnum(final String code, final String message) {
        this.code = code;
        this.value = message;
    }

    public static String getCodeByValue(String value){
        for(MonthEnum one : MonthEnum.values()){
            if(value.equals(one.getValue())){
                return one.getCode();
            }
        }
        return "";
    }
}
